<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:wug="http://wug.jp/2009/wug"
      wug:root="jp.wug.samples.cart.CartPage"
        >
<body>
<a wug:link="linkToIndex">Continue shopping</a><br/>

<form wug:form="cart">
    <span wug:render="renderItems,getItem">
        <label wug:for="count">${name}:</label>
        <input wug:input="count" type="text"/>
        <span wug:catch="NumberFormatException,count">Please put a number here.(${toString})</span>
        <span wug:catch="jp.wug.samples.cart.OutOfRangeException,count">Please put a number larger than 0 here.(${toString})</span>
        <br/>
    </span>
    <input wug:submit="buy" type="submit" value="Buy"/>
</form>

</body>
</html>
